<?php

namespace app\service;

class BaseService
{
    protected $field = ['*'];

    public function get($model)
    {
        return $model->field($this->field)->select();
    }

    public function find($model,$id)
    {
        return $model->where($model->pk,$id)->find($this->field);
    }

    public function store($model,$input)
    {

    }

    public function put($model,$input,$id)
    {

    }

    public function soft_delete($model,$id)
    {

    }

    public function delete($model,$id)
    {

    }
}